package com.qingzhuge.common.jwt;

import static com.qingzhuge.common.Constants.DEFAULT_ENCODING;

public class DigestUtil {

    public static String sha256Digest(String str) {
        String sha256 = "SHA-256";
        return Digest.digest(str, sha256, DEFAULT_ENCODING);
        }
    }